Skip to main content

less-than-or-greater-than

Type

operator

Summary

Compares two values and returns true if they are not equal, false if they are equal.

Syntax

<value1> &lt;&gt; <value2>

Description

Use the <> (inequality) operator to compare two numbers or to compare two strings.

When comparing strings, the <> operator compares the two values character by character, using the ASCII value of each character. If the caseSensitive property is true, the comparison between two strings treats uppercase letters as coming before lowercase letters, so "A" <> "a". If the caseSensitive property is false, the comparison is not case-sensitive, so "a" is considered equivalent to "A".

Parameters

NameTypeDescription

value1

The operands value1 and value2 can be numbers, literal strings of characters (delimited with double quotes), or any sources of value. :

value2

Examples

3 + 2 &lt;&gt; 6
"abc" &lt;&gt; "abd"
field "Old Password" &lt;&gt; field "Password"

glossary: property, operator, case-sensitive, value, return, string

operator: contains, equals, less than, greater-than

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?